File and Pipe: set fileptr to nil on close() (HJH requested fix)
[supercollider.git] / platform / iphone / iPhone Resources / patches / window.rtf
blob561be43165b35fbb7cedf9101f2283d81c7829bc
1 {\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf460
2 {\fonttbl\f0\fnil\fcharset0 Monaco;}
3 {\colortbl;\red255\green255\blue255;\red0\green0\blue191;\red96\green96\blue96;\red191\green0\blue0;
5 \deftab560
6 \pard\pardeftab560\ql\qnatural
8 \f0\fs18 \cf0 w = \cf2 SCWindow\cf0 (\cf3 "Test !"\cf0 , \cf2 Rect\cf0 (0, 0, 480, 640));\
9 b = \cf2 SCButton\cf0 (w, \cf2 Rect\cf0 (0,20,340,30))\
10                 .states_([\
11                         [\cf3 "push it !"\cf0 , \cf2 Color\cf0 .black, \cf2 Color\cf0 .red],\
12                 ])\
13                 .action_(\
14                 \{\
15                         w.close;\
16                 \});\
17 \pard\pardeftab560\ql\qnatural
18 \cf4 w.front;}